package com.test.T;

import java.io.Serializable;

public class Fruit<T extends String & Serializable> {
	private T info;

	public Fruit(T info) {
		this.info = info;
	}

	public T getInfo() {
		return info;
	}

	public void setInfo(T info) {
		this.info = info;
	}
	
	public static void main(String[] args) {
		Fruit<String> lt = new Fruit<>("苹果");
		System.out.println(lt.getInfo());
		Fruit<?> intg = new Fruit<>("1");
		System.out.println(intg.getInfo());
	}
}
